#include "gflags/gflags.h"
#include "rclcpp/rclcpp.hpp"
#include "slam_ros/map_editor.h"

DEFINE_int32(a, 60, "val a.");

int main(int argc, char** argv)
{
    // 初始化gflags
    google::InitGoogleLogging(argv[0]);
    google::ParseCommandLineFlags(&argc, &argv, true);

    rclcpp::init(argc, argv);
    
    auto node = std::make_shared<slam_ros::MapEditor>(
        rclcpp::NodeOptions()
            .allow_undeclared_parameters(true)
            .automatically_declare_parameters_from_overrides(true)
    );
    rclcpp::spin(node);
    rclcpp::shutdown();
    return 0;
}